import { NumberIdRecordModel, User } from '$/client'
import { type Mutable } from '../client-core'

export class Comment extends NumberIdRecordModel {
  copilot: number = 0
  userId: number = 0
  user: User = User.inst()
  content: string = ''

  initialize(data: Mutable<this>): void {
    data.user = User.inst(data.user)
    super.initialize(data)
  }
}
